home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-12 | 7.0 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: SafeLauncher.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Oct 12 02:45:41 1994, modified Wed Oct 12 02:45:41 1994, creator 'MMCC', type ASCII, 6633 bytes "SafeLauncher.c" , at 0x1a69 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 53 61 66 65 4c 61 | 75 6e 63 68 65 72 2e 63 |..SafeLa|uncher.c|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 19 e9 00 | 00 01 7e aa c1 36 95 aa |........|..~..6..|
|00000060| c1 36 95 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.6......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6b 20 00 00 |........|....k ..|
|00000080| 2f 2f 0d 2f 2f 20 50 72 | 6f 70 65 72 4c 61 75 6e |//.// Pr|operLaun|
|00000090| 63 68 65 72 2e 63 0d 2f | 2f 0d 2f 2f 09 57 72 69 |cher.c./|/.//.Wri|
|000000a0| 74 74 65 6e 20 62 79 20 | 4e 69 63 6b 20 54 72 69 |tten by |Nick Tri|
|000000b0| 61 6e 74 6f 73 0d 2f 2f | 0d 2f 2f 09 43 6f 70 79 |antos.//|.//.Copy|
|000000c0| 72 69 67 68 74 20 a9 20 | 31 39 39 34 20 62 79 20 |right . |1994 by |
|000000d0| 4e 69 63 6b 20 54 72 69 | 61 6e 74 6f 73 2e 20 20 |Nick Tri|antos. |
|000000e0| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|000000f0| 76 65 64 2e 0d 2f 2f 0d | 2f 2f 09 54 68 69 73 20 |ved..//.|//.This |
|00000100| 70 72 6f 67 72 61 6d 20 | 77 69 6c 6c 20 6c 61 75 |program |will lau|
|00000110| 6e 63 68 20 74 68 65 20 | 6f 6e 65 20 6e 61 6d 65 |nch the |one name|
|00000120| 64 20 69 6e 20 74 68 65 | 20 27 53 54 52 20 27 20 |d in the| 'STR ' |
|00000130| 72 65 73 6f 75 72 63 65 | 20 69 66 20 61 6e 64 20 |resource| if and |
|00000140| 6f 6e 6c 79 0d 2f 2f 09 | 69 66 20 77 65 27 72 65 |only.//.|if we're|
|00000150| 20 69 6e 20 32 34 2d 62 | 69 74 20 61 64 64 72 65 | in 24-b|it addre|
|00000160| 73 73 69 6e 67 20 6d 6f | 64 65 2e 20 20 50 72 65 |ssing mo|de. Pre|
|00000170| 76 65 6e 74 73 20 63 72 | 61 73 68 65 73 20 66 6f |vents cr|ashes fo|
|00000180| 72 20 73 6f 6d 65 20 6f | 6c 64 20 67 72 65 61 74 |r some o|ld great|
|00000190| 0d 2f 2f 09 67 61 6d 65 | 73 2e 0d 2f 2f 0d 2f 2f |.//.game|s..//.//|
|000001a0| 09 4d 6f 64 69 66 69 63 | 61 74 69 6f 6e 20 68 69 |.Modific|ation hi|
|000001b0| 73 74 6f 72 79 3a 20 28 | 6d 6f 73 74 20 72 65 63 |story: (|most rec|
|000001c0| 65 6e 74 20 66 69 72 73 | 74 29 0d 2f 2f 0d 2f 2f |ent firs|t).//.//|
|000001d0| 09 09 44 61 74 65 3a 09 | 09 43 68 67 3a 09 44 65 |..Date:.|.Chg:.De|
|000001e0| 73 63 72 69 70 74 69 6f | 6e 3a 0d 2f 2f 09 09 31 |scriptio|n:.//..1|
|000001f0| 30 2f 31 31 2f 39 34 09 | 30 30 30 30 09 49 6e 69 |0/11/94.|0000.Ini|
|00000200| 74 69 61 6c 20 63 6f 64 | 69 6e 67 2e 20 20 4d 61 |tial cod|ing. Ma|
|00000210| 6b 65 20 63 68 65 63 6b | 73 20 66 6f 72 20 33 32 |ke check|s for 32|
|00000220| 2d 20 61 6e 64 20 32 34 | 2d 62 69 74 20 61 64 64 |- and 24|-bit add|
|00000230| 72 2c 0d 2f 2f 09 09 09 | 09 09 09 09 75 73 65 20 |r,.//...|....use |
|00000240| 72 73 72 63 2e 20 66 6f | 72 20 65 64 69 74 61 62 |rsrc. fo|r editab|
|00000250| 69 6c 69 74 79 2c 20 53 | 79 73 20 37 20 64 65 70 |ility, S|ys 7 dep|
|00000260| 65 6e 64 65 6e 74 0d 2f | 2f 09 09 31 30 2f 31 31 |endent./|/..10/11|
|00000270| 2f 39 34 09 30 30 30 31 | 09 41 64 64 20 63 68 65 |/94.0001|.Add che|
|00000280| 63 6b 20 66 6f 72 20 51 | 75 61 64 72 61 27 73 20 |ck for Q|uadra's |
|00000290| 63 61 63 68 65 2e 20 20 | 53 6f 6d 65 20 61 70 70 |cache. |Some app|
|000002a0| 73 20 6e 65 65 64 20 66 | 6f 72 20 69 74 0d 2f 2f |s need f|or it.//|
|000002b0| 09 09 09 09 09 09 09 74 | 6f 20 62 65 20 6f 66 66 |.......t|o be off|
|000002c0| 2e 0d 0d 23 64 65 66 69 | 6e 65 20 6b 44 69 61 6c |...#defi|ne kDial|
|000002d0| 6f 67 49 44 09 09 09 09 | 31 32 38 0d 23 64 65 66 |ogID....|128.#def|
|000002e0| 69 6e 65 20 6b 44 69 61 | 6c 6f 67 49 74 65 6d 4e |ine kDia|logItemN|
|000002f0| 6f 09 09 09 32 0d 23 64 | 65 66 69 6e 65 20 6b 44 |o...2.#d|efine kD|
|00000300| 69 61 6c 6f 67 46 6f 6e | 74 09 09 09 09 31 0d 23 |ialogFon|t....1.#|
|00000310| 64 65 66 69 6e 65 20 6b | 44 69 61 6c 6f 67 53 69 |define k|DialogSi|
|00000320| 7a 65 09 09 09 09 31 30 | 0d 23 64 65 66 69 6e 65 |ze....10|.#define|
|00000330| 20 6b 46 69 6c 65 6e 61 | 6d 65 09 09 09 09 31 32 | kFilena|me....12|
|00000340| 38 0d 2f 2f 20 45 72 72 | 6f 72 20 73 74 72 69 6e |8.// Err|or strin|
|00000350| 67 73 0d 23 64 65 66 69 | 6e 65 20 6b 46 61 69 6c |gs.#defi|ne kFail|
|00000360| 32 34 42 69 74 41 64 64 | 72 49 44 09 09 31 32 39 |24BitAdd|rID..129|
|00000370| 0d 23 64 65 66 69 6e 65 | 20 6b 46 61 69 6c 33 32 |.#define| kFail32|
|00000380| 42 69 74 41 64 64 72 49 | 44 09 09 31 33 30 0d 23 |BitAddrI|D..130.#|
|00000390| 64 65 66 69 6e 65 20 6b | 46 61 69 6c 51 75 61 64 |define k|FailQuad|
|000003a0| 43 61 63 68 65 4f 66 66 | 49 44 09 09 31 33 31 0d |CacheOff|ID..131.|
|000003b0| 23 64 65 66 69 6e 65 20 | 6b 46 61 69 6c 42 61 64 |#define |kFailBad|
|000003c0| 44 65 70 74 68 49 44 09 | 09 09 31 33 32 0d 23 64 |DepthID.|..132.#d|
|000003d0| 65 66 69 6e 65 20 6b 46 | 61 69 6c 46 69 6c 65 4e |efine kF|ailFileN|
|000003e0| 6f 74 46 6f 75 6e 64 49 | 44 09 09 31 33 33 0d 23 |otFoundI|D..133.#|
|000003f0| 64 65 66 69 6e 65 20 6b | 4c 50 72 70 49 44 09 09 |define k|LPrpID..|
|00000400| 09 09 09 30 0d 2f 2f 20 | 42 69 74 73 20 72 65 61 |...0.// |Bits rea|
|00000410| 64 20 66 72 6f 6d 20 74 | 68 65 20 27 4c 50 72 70 |d from t|he 'LPrp|
|00000420| 27 20 28 4c 61 75 6e 63 | 68 20 50 72 6f 70 65 72 |' (Launc|h Proper|
|00000430| 74 69 65 73 29 20 72 65 | 73 6f 75 72 63 65 0d 23 |ties) re|source.#|
|00000440| 64 65 66 69 6e 65 20 62 | 69 74 43 68 65 63 6b 33 |define b|itCheck3|
|00000450| 32 42 69 74 41 64 64 72 | 09 09 30 78 38 30 0d 23 |2BitAddr|..0x80.#|
|00000460| 64 65 66 69 6e 65 20 62 | 69 74 43 68 65 63 6b 32 |define b|itCheck2|
|00000470| 34 42 69 74 41 64 64 72 | 09 09 30 78 34 30 0d 23 |4BitAddr|..0x40.#|
|00000480| 64 65 66 69 6e 65 20 62 | 69 74 44 69 73 61 62 6c |define b|itDisabl|
|00000490| 65 51 75 61 64 43 61 63 | 68 65 09 09 30 78 32 30 |eQuadCac|he..0x20|
|000004a0| 0d 23 64 65 66 69 6e 65 | 20 62 69 74 53 65 74 44 |.#define| bitSetD|
|000004b0| 65 70 74 68 09 09 09 09 | 30 78 31 30 0d 0d 0d 74 |epth....|0x10...t|
|000004c0| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 4c 61 |ypedef s|truct La|
|000004d0| 75 6e 63 68 50 72 6f 70 | 65 72 74 69 65 73 20 7b |unchProp|erties {|
|000004e0| 0d 09 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 09 |..unsign|ed char.|
|000004f0| 09 63 68 6b 42 69 74 73 | 20 3b 0d 09 75 6e 73 69 |.chkBits| ;..unsi|
|00000500| 67 6e 65 64 20 63 68 61 | 72 09 09 64 65 70 74 68 |gned cha|r..depth|
|00000510| 20 3b 0d 7d 20 4c 61 75 | 6e 63 68 50 72 6f 70 65 | ;.} Lau|nchPrope|
|00000520| 72 74 69 65 73 2c 20 2a | 4c 61 75 6e 63 68 50 72 |rties, *|LaunchPr|
|00000530| 6f 70 50 74 72 2c 20 2a | 2a 4c 61 75 6e 63 68 50 |opPtr, *|*LaunchP|
|00000540| 72 6f 70 48 64 6c 20 3b | 0d 0d 0d 23 69 6e 63 6c |ropHdl ;|...#incl|
|00000550| 75 64 65 20 3c 47 65 73 | 74 61 6c 74 45 71 75 2e |ude <Ges|taltEqu.|
|00000560| 68 3e 09 09 09 2f 2f 20 | 54 6f 20 63 68 65 63 6b |h>...// |To check|
|00000570| 20 66 6f 72 20 73 79 73 | 20 69 6e 66 6f 20 66 6f | for sys| info fo|
|00000580| 72 20 66 6c 61 67 73 0d | 23 69 6e 63 6c 75 64 65 |r flags.|#include|
|00000590| 20 3c 50 72 6f 63 65 73 | 73 65 73 2e 68 3e 09 09 | <Proces|ses.h>..|
|000005a0| 09 2f 2f 20 54 6f 20 6c | 61 75 6e 63 68 20 74 68 |.// To l|aunch th|
|000005b0| 65 20 61 70 70 0d 23 69 | 6e 63 6c 75 64 65 20 3c |e app.#i|nclude <|
|000005c0| 50 61 6c 65 74 74 65 73 | 2e 68 3e 09 09 09 2f 2f |Palettes|.h>...//|
|000005d0| 20 46 6f 72 20 64 65 70 | 74 68 2d 73 65 74 74 69 | For dep|th-setti|
|000005e0| 6e 67 20 72 6f 75 74 69 | 6e 65 73 0d 23 69 66 6e |ng routi|nes.#ifn|
|000005f0| 64 65 66 20 5f 5f 54 52 | 41 50 53 5f 5f 0d 23 69 |def __TR|APS__.#i|
|00000600| 6e 63 6c 75 64 65 20 3c | 54 72 61 70 73 2e 68 3e |nclude <|Traps.h>|
|00000610| 0d 23 65 6e 64 69 66 0d | 23 69 66 6e 64 65 66 20 |.#endif.|#ifndef |
|00000620| 5f 5f 4d 57 45 52 4b 53 | 5f 5f 0d 70 61 73 63 61 |__MWERKS|__.pasca|
|00000630| 6c 20 4f 53 45 72 72 20 | 53 65 74 44 69 61 6c 6f |l OSErr |SetDialo|
|00000640| 67 44 65 66 61 75 6c 74 | 49 74 65 6d 20 28 44 69 |gDefault|Item (Di|
|00000650| 61 6c 6f 67 50 74 72 20 | 74 68 65 44 69 61 6c 6f |alogPtr |theDialo|
|00000660| 67 2c 0d 09 09 73 68 6f | 72 74 20 6e 65 77 49 74 |g,...sho|rt newIt|
|00000670| 65 6d 29 20 3d 20 7b 30 | 78 33 30 33 43 2c 30 78 |em) = {0|x303C,0x|
|00000680| 30 33 30 34 2c 30 78 41 | 41 36 38 7d 3b 0d 23 65 |0304,0xA|A68};.#e|
|00000690| 6e 64 69 66 0d 0d 0d 0d | 2f 2f 20 6c 6f 63 61 6c |ndif....|// local|
|000006a0| 20 66 75 6e 63 74 69 6f | 6e 73 0d 76 6f 69 64 20 | functio|ns.void |
|000006b0| 49 6e 69 74 54 6f 6f 6c | 62 6f 78 28 20 76 6f 69 |InitTool|box( voi|
|000006c0| 64 20 29 20 3b 0d 70 61 | 73 63 61 6c 20 76 6f 69 |d ) ;.pa|scal voi|
|000006d0| 64 20 6d 79 49 74 65 6d | 28 20 57 69 6e 64 6f 77 |d myItem|( Window|
|000006e0| 50 74 72 20 74 68 65 57 | 69 6e 64 6f 77 2c 20 73 |Ptr theW|indow, s|
|000006f0| 68 6f 72 74 20 74 68 65 | 49 74 65 6d 20 29 20 3b |hort the|Item ) ;|
|00000700| 0d 76 6f 69 64 20 44 69 | 73 70 6c 61 79 46 61 69 |.void Di|splayFai|
|00000710| 6c 41 6c 65 72 74 28 20 | 73 68 6f 72 74 20 69 64 |lAlert( |short id|
|00000720| 20 29 20 3b 0d 76 6f 69 | 64 20 4c 61 75 6e 63 68 | ) ;.voi|d Launch|
|00000730| 41 70 70 28 20 76 6f 69 | 64 20 29 20 3b 0d 42 6f |App( voi|d ) ;.Bo|
|00000740| 6f 6c 65 61 6e 20 48 57 | 50 72 69 76 41 76 61 69 |olean HW|PrivAvai|
|00000750| 6c 61 62 6c 65 28 20 76 | 6f 69 64 20 29 20 3b 0d |lable( v|oid ) ;.|
|00000760| 2f 2f 20 65 78 74 65 72 | 6e 61 6c 20 66 75 6e 63 |// exter|nal func|
|00000770| 74 69 6f 6e 73 0d 42 6f | 6f 6c 65 61 6e 20 54 72 |tions.Bo|olean Tr|
|00000780| 61 70 41 76 61 69 6c 61 | 62 6c 65 28 73 68 6f 72 |apAvaila|ble(shor|
|00000790| 74 20 74 68 65 54 72 61 | 70 29 20 3b 0d 0d 0d 52 |t theTra|p) ;...R|
|000007a0| 65 63 74 09 09 67 49 74 | 65 6d 52 65 63 74 20 3b |ect..gIt|emRect ;|
|000007b0| 0d 73 68 6f 72 74 09 09 | 67 53 74 72 49 44 20 3b |.short..|gStrID ;|
|000007c0| 0d 0d 0d 76 6f 69 64 20 | 49 6e 69 74 54 6f 6f 6c |...void |InitTool|
|000007d0| 62 6f 78 28 20 76 6f 69 | 64 20 29 0d 7b 0d 09 49 |box( voi|d ).{..I|
|000007e0| 6e 69 74 47 72 61 66 28 | 20 26 71 64 2e 74 68 65 |nitGraf(| &qd.the|
|000007f0| 50 6f 72 74 20 29 20 3b | 0d 09 49 6e 69 74 46 6f |Port ) ;|..InitFo|
|00000800| 6e 74 73 28 29 20 3b 0d | 09 49 6e 69 74 57 69 6e |nts() ;.|.InitWin|
|00000810| 64 6f 77 73 28 29 20 3b | 0d 09 49 6e 69 74 4d 65 |dows() ;|..InitMe|
|00000820| 6e 75 73 28 29 20 3b 0d | 09 54 45 49 6e 69 74 28 |nus() ;.|.TEInit(|
|00000830| 29 20 3b 0d 09 49 6e 69 | 74 44 69 61 6c 6f 67 73 |) ;..Ini|tDialogs|
|00000840| 28 20 6e 69 6c 20 29 20 | 3b 0d 09 49 6e 69 74 43 |( nil ) |;..InitC|
|00000850| 75 72 73 6f 72 28 29 20 | 3b 0d 7d 0d 0d 6d 61 69 |ursor() |;.}..mai|
|00000860| 6e 28 29 0d 7b 0d 09 4f | 53 45 72 72 09 09 09 74 |n().{..O|SErr...t|
|00000870| 68 65 45 72 72 20 3b 0d | 09 6c 6f 6e 67 09 09 09 |heErr ;.|.long...|
|00000880| 72 65 73 75 6c 74 20 3b | 0d 09 4c 61 75 6e 63 68 |result ;|..Launch|
|00000890| 50 72 6f 70 48 64 6c 09 | 6c 70 48 64 6c 20 3b 0d |PropHdl.|lpHdl ;.|
|000008a0| 09 4c 61 75 6e 63 68 50 | 72 6f 70 50 74 72 09 6c |.LaunchP|ropPtr.l|
|000008b0| 70 50 74 72 20 3b 0d 09 | 0d 09 4d 61 78 41 70 70 |pPtr ;..|..MaxApp|
|000008c0| 6c 5a 6f 6e 65 28 29 20 | 3b 0d 09 49 6e 69 74 54 |lZone() |;..InitT|
|000008d0| 6f 6f 6c 62 6f 78 28 29 | 20 3b 0d 09 6c 70 48 64 |oolbox()| ;..lpHd|
|000008e0| 6c 20 3d 20 28 4c 61 75 | 6e 63 68 50 72 6f 70 48 |l = (Lau|nchPropH|
|000008f0| 64 6c 29 47 65 74 52 65 | 73 6f 75 72 63 65 28 20 |dl)GetRe|source( |
|00000900| 27 4c 50 72 70 27 2c 20 | 6b 4c 50 72 70 49 44 20 |'LPrp', |kLPrpID |
|00000910| 29 20 3b 0d 09 69 66 20 | 28 6c 70 48 64 6c 20 3d |) ;..if |(lpHdl =|
|00000920| 3d 20 6e 69 6c 29 0d 09 | 09 72 65 74 75 72 6e 20 |= nil)..|.return |
|00000930| 30 20 3b 0d 09 48 4c 6f | 63 6b 28 20 28 48 61 6e |0 ;..HLo|ck( (Han|
|00000940| 64 6c 65 29 6c 70 48 64 | 6c 20 29 20 3b 0d 09 6c |dle)lpHd|l ) ;..l|
|00000950| 70 50 74 72 20 3d 20 2a | 6c 70 48 64 6c 20 3b 0d |pPtr = *|lpHdl ;.|
|00000960| 09 69 66 20 28 20 6c 70 | 50 74 72 2d 3e 63 68 6b |.if ( lp|Ptr->chk|
|00000970| 42 69 74 73 20 26 20 28 | 62 69 74 43 68 65 63 6b |Bits & (|bitCheck|
|00000980| 33 32 42 69 74 41 64 64 | 72 7c 62 69 74 43 68 65 |32BitAdd|r|bitChe|
|00000990| 63 6b 32 34 42 69 74 41 | 64 64 72 29 20 29 20 7b |ck24BitA|ddr) ) {|
|000009a0| 0d 09 09 74 68 65 45 72 | 72 20 3d 20 47 65 73 74 |...theEr|r = Gest|
|000009b0| 61 6c 74 28 20 67 65 73 | 74 61 6c 74 41 64 64 72 |alt( ges|taltAddr|
|000009c0| 65 73 73 69 6e 67 4d 6f | 64 65 41 74 74 72 2c 20 |essingMo|deAttr, |
|000009d0| 26 72 65 73 75 6c 74 20 | 29 20 3b 0d 09 09 69 66 |&result |) ;...if|
|000009e0| 20 28 74 68 65 45 72 72 | 20 21 3d 20 6e 6f 45 72 | (theErr| != noEr|
|000009f0| 72 29 0d 09 09 09 72 65 | 74 75 72 6e 20 74 68 65 |r)....re|turn the|
|00000a00| 45 72 72 20 3b 0d 09 09 | 2f 2f 20 43 68 65 63 6b |Err ;...|// Check|
|00000a10| 20 69 66 20 77 65 27 72 | 65 20 69 6e 20 32 34 2d | if we'r|e in 24-|
|00000a20| 62 69 74 20 61 64 64 72 | 65 73 73 69 6e 67 20 6d |bit addr|essing m|
|00000a30| 6f 64 65 0d 09 09 69 66 | 20 28 28 6c 70 50 74 72 |ode...if| ((lpPtr|
|00000a40| 2d 3e 63 68 6b 42 69 74 | 73 20 26 20 62 69 74 43 |->chkBit|s & bitC|
|00000a50| 68 65 63 6b 32 34 42 69 | 74 41 64 64 72 29 20 26 |heck24Bi|tAddr) &|
|00000a60| 26 0d 09 09 09 28 42 69 | 74 54 73 74 28 26 72 65 |&....(Bi|tTst(&re|
|00000a70| 73 75 6c 74 2c 20 33 31 | 2d 67 65 73 74 61 6c 74 |sult, 31|-gestalt|
|00000a80| 33 32 42 69 74 41 64 64 | 72 65 73 73 69 6e 67 29 |32BitAdd|ressing)|
|00000a90| 3d 3d 54 52 55 45 29 20 | 29 20 7b 0d 09 09 09 44 |==TRUE) |) {....D|
|00000aa0| 69 73 70 6c 61 79 46 61 | 69 6c 41 6c 65 72 74 28 |isplayFa|ilAlert(|
|00000ab0| 20 6b 46 61 69 6c 32 34 | 42 69 74 41 64 64 72 49 | kFail24|BitAddrI|
|00000ac0| 44 20 29 20 3b 0d 09 09 | 09 67 6f 74 6f 20 65 78 |D ) ;...|.goto ex|
|00000ad0| 69 74 20 3b 0d 09 09 7d | 0d 09 09 2f 2f 20 43 68 |it ;...}|...// Ch|
|00000ae0| 65 63 6b 20 69 66 20 77 | 65 27 72 65 20 69 6e 20 |eck if w|e're in |
|00000af0| 33 32 2d 62 69 74 20 61 | 64 64 72 65 73 73 69 6e |32-bit a|ddressin|
|00000b00| 67 20 6d 6f 64 65 0d 09 | 09 69 66 20 28 28 6c 70 |g mode..|.if ((lp|
|00000b10| 50 74 72 2d 3e 63 68 6b | 42 69 74 73 20 26 20 62 |Ptr->chk|Bits & b|
|00000b20| 69 74 43 68 65 63 6b 33 | 32 42 69 74 41 64 64 72 |itCheck3|2BitAddr|
|00000b30| 29 20 26 26 0d 09 09 09 | 28 42 69 74 54 73 74 28 |) &&....|(BitTst(|
|00000b40| 26 72 65 73 75 6c 74 2c | 20 33 31 2d 67 65 73 74 |&result,| 31-gest|
|00000b50| 61 6c 74 33 32 42 69 74 | 41 64 64 72 65 73 73 69 |alt32Bit|Addressi|
|00000b60| 6e 67 29 3d 3d 46 41 4c | 53 45 29 20 29 20 7b 0d |ng)==FAL|SE) ) {.|
|00000b70| 09 09 09 44 69 73 70 6c | 61 79 46 61 69 6c 41 6c |...Displ|ayFailAl|
|00000b80| 65 72 74 28 20 6b 46 61 | 69 6c 33 32 42 69 74 41 |ert( kFa|il32BitA|
|00000b90| 64 64 72 49 44 20 29 20 | 3b 0d 09 09 09 67 6f 74 |ddrID ) |;....got|
|00000ba0| 6f 20 65 78 69 74 20 3b | 0d 09 09 7d 0d 09 7d 0d |o exit ;|...}..}.|
|00000bb0| 09 2f 2f 20 43 68 65 63 | 6b 20 69 66 20 74 68 65 |.// Chec|k if the|
|00000bc0| 20 51 75 61 64 72 61 20 | 63 61 63 68 65 20 69 73 | Quadra |cache is|
|00000bd0| 20 6f 66 66 0d 09 69 66 | 20 28 6c 70 50 74 72 2d | off..if| (lpPtr-|
|00000be0| 3e 63 68 6b 42 69 74 73 | 20 26 20 62 69 74 44 69 |>chkBits| & bitDi|
|00000bf0| 73 61 62 6c 65 51 75 61 | 64 43 61 63 68 65 29 20 |sableQua|dCache) |
|00000c00| 7b 0d 09 09 42 6f 6f 6c | 65 61 6e 09 09 6f 6c 64 |{...Bool|ean..old|
|00000c10| 53 74 61 74 65 20 3b 0d | 09 09 42 6f 6f 6c 65 61 |State ;.|..Boolea|
|00000c20| 6e 09 09 74 65 6d 70 53 | 74 61 74 65 20 3d 20 54 |n..tempS|tate = T|
|00000c30| 52 55 45 20 3b 09 09 2f | 2f 20 54 72 75 65 20 6f |RUE ;../|/ True o|
|00000c40| 72 20 46 61 6c 73 65 2c | 20 69 74 20 6d 61 6b 65 |r False,| it make|
|00000c50| 73 20 6e 6f 20 64 69 66 | 66 65 72 65 6e 63 65 2e |s no dif|ference.|
|00000c60| 0d 09 09 0d 09 09 69 66 | 20 28 21 48 57 50 72 69 |......if| (!HWPri|
|00000c70| 76 41 76 61 69 6c 61 62 | 6c 65 28 29 29 0d 09 09 |vAvailab|le())...|
|00000c80| 09 67 6f 74 6f 20 65 78 | 69 74 20 3b 0d 09 09 2f |.goto ex|it ;.../|
|00000c90| 2f 20 44 61 74 61 20 63 | 61 63 68 65 0d 09 09 6f |/ Data c|ache...o|
|00000ca0| 6c 64 53 74 61 74 65 20 | 3d 20 53 77 61 70 44 61 |ldState |= SwapDa|
|00000cb0| 74 61 43 61 63 68 65 28 | 20 74 65 6d 70 53 74 61 |taCache(| tempSta|
|00000cc0| 74 65 20 29 20 3b 09 2f | 2f 20 47 65 74 20 74 68 |te ) ;./|/ Get th|
|00000cd0| 65 20 73 74 61 74 65 20 | 69 6e 20 22 6f 6c 64 53 |e state |in "oldS|
|00000ce0| 74 61 74 65 22 0d 09 09 | 69 66 20 28 6f 6c 64 53 |tate"...|if (oldS|
|00000cf0| 74 61 74 65 20 21 3d 20 | 74 65 6d 70 53 74 61 74 |tate != |tempStat|
|00000d00| 65 29 0d 09 09 09 28 76 | 6f 69 64 29 53 77 61 70 |e)....(v|oid)Swap|
|00000d10| 44 61 74 61 43 61 63 68 | 65 28 20 6f 6c 64 53 74 |DataCach|e( oldSt|
|00000d20| 61 74 65 20 29 20 3b 09 | 2f 2f 20 52 65 73 74 6f |ate ) ;.|// Resto|
|00000d30| 72 65 20 73 74 61 74 65 | 20 69 66 20 77 65 20 63 |re state| if we c|
|00000d40| 68 61 6e 67 65 64 20 69 | 74 0d 09 09 69 66 20 28 |hanged i|t...if (|
|00000d50| 6f 6c 64 53 74 61 74 65 | 20 3d 3d 20 54 52 55 45 |oldState| == TRUE|
|00000d60| 29 20 7b 0d 09 09 09 44 | 69 73 70 6c 61 79 46 61 |) {....D|isplayFa|
|00000d70| 69 6c 41 6c 65 72 74 28 | 20 6b 46 61 69 6c 51 75 |ilAlert(| kFailQu|
|00000d80| 61 64 43 61 63 68 65 4f | 66 66 49 44 20 29 20 3b |adCacheO|ffID ) ;|
|00000d90| 0d 09 09 09 67 6f 74 6f | 20 65 78 69 74 20 3b 0d |....goto| exit ;.|
|00000da0| 09 09 7d 0d 09 09 2f 2f | 20 69 6e 73 74 72 75 63 |..}...//| instruc|
|00000db0| 74 69 6f 6e 20 63 61 63 | 68 65 0d 09 09 6f 6c 64 |tion cac|he...old|
|00000dc0| 53 74 61 74 65 20 3d 20 | 53 77 61 70 49 6e 73 74 |State = |SwapInst|
|00000dd0| 72 75 63 74 69 6f 6e 43 | 61 63 68 65 28 20 74 65 |ructionC|ache( te|
|00000de0| 6d 70 53 74 61 74 65 20 | 29 20 3b 09 2f 2f 20 47 |mpState |) ;.// G|
|00000df0| 65 74 20 74 68 65 20 73 | 74 61 74 65 20 69 6e 20 |et the s|tate in |
|00000e00| 22 6f 6c 64 53 74 61 74 | 65 22 0d 09 09 69 66 20 |"oldStat|e"...if |
|00000e10| 28 6f 6c 64 53 74 61 74 | 65 20 21 3d 20 74 65 6d |(oldStat|e != tem|
|00000e20| 70 53 74 61 74 65 29 0d | 09 09 09 28 76 6f 69 64 |pState).|...(void|
|00000e30| 29 53 77 61 70 49 6e 73 | 74 72 75 63 74 69 6f 6e |)SwapIns|truction|
|00000e40| 43 61 63 68 65 28 20 6f | 6c 64 53 74 61 74 65 20 |Cache( o|ldState |
|00000e50| 29 20 3b 09 2f 2f 20 52 | 65 73 74 6f 72 65 20 73 |) ;.// R|estore s|
|00000e60| 74 61 74 65 20 69 66 20 | 77 65 20 63 68 61 6e 67 |tate if |we chang|
|00000e70| 65 64 20 69 74 0d 09 09 | 69 66 20 28 6f 6c 64 53 |ed it...|if (oldS|
|00000e80| 74 61 74 65 20 3d 3d 20 | 54 52 55 45 29 20 7b 0d |tate == |TRUE) {.|
|00000e90| 09 09 09 44 69 73 70 6c | 61 79 46 61 69 6c 41 6c |...Displ|ayFailAl|
|00000ea0| 65 72 74 28 20 6b 46 61 | 69 6c 51 75 61 64 43 61 |ert( kFa|ilQuadCa|
|00000eb0| 63 68 65 4f 66 66 49 44 | 20 29 20 3b 0d 09 09 09 |cheOffID| ) ;....|
|00000ec0| 67 6f 74 6f 20 65 78 69 | 74 20 3b 0d 09 09 7d 0d |goto exi|t ;...}.|
|00000ed0| 09 7d 0d 09 2f 2f 20 53 | 65 74 20 62 69 74 20 64 |.}..// S|et bit d|
|00000ee0| 65 70 74 68 20 69 66 20 | 77 65 20 6e 65 65 64 20 |epth if |we need |
|00000ef0| 74 6f 0d 09 69 66 20 28 | 6c 70 50 74 72 2d 3e 63 |to..if (|lpPtr->c|
|00000f00| 68 6b 42 69 74 73 20 26 | 20 62 69 74 53 65 74 44 |hkBits &| bitSetD|
|00000f10| 65 70 74 68 29 20 7b 0d | 09 09 73 68 6f 72 74 20 |epth) {.|..short |
|00000f20| 77 68 69 63 68 46 6c 61 | 67 73 3d 30 2c 20 66 6c |whichFla|gs=0, fl|
|00000f30| 61 67 73 3d 30 20 3b 0d | 09 09 73 68 6f 72 74 20 |ags=0 ;.|..short |
|00000f40| 64 65 70 74 68 49 44 20 | 3d 20 48 61 73 44 65 70 |depthID |= HasDep|
|00000f50| 74 68 28 20 47 65 74 47 | 44 65 76 69 63 65 28 29 |th( GetG|Device()|
|00000f60| 2c 20 6c 70 50 74 72 2d | 3e 64 65 70 74 68 2c 20 |, lpPtr-|>depth, |
|00000f70| 30 2c 20 30 20 29 20 3b | 0d 09 09 0d 09 09 69 66 |0, 0 ) ;|......if|
|00000f80| 20 28 64 65 70 74 68 49 | 44 20 3d 3d 20 30 29 20 | (depthI|D == 0) |
|00000f90| 7b 0d 09 09 09 44 69 73 | 70 6c 61 79 46 61 69 6c |{....Dis|playFail|
|00000fa0| 41 6c 65 72 74 28 20 6b | 46 61 69 6c 42 61 64 44 |Alert( k|FailBadD|
|00000fb0| 65 70 74 68 49 44 20 29 | 20 3b 0d 09 09 09 67 6f |epthID )| ;....go|
|00000fc0| 74 6f 20 65 78 69 74 20 | 3b 0d 09 09 7d 0d 09 09 |to exit |;...}...|
|00000fd0| 65 6c 73 65 20 7b 0d 09 | 09 09 69 66 20 28 6c 70 |else {..|..if (lp|
|00000fe0| 50 74 72 2d 3e 64 65 70 | 74 68 20 3d 3d 20 31 29 |Ptr->dep|th == 1)|
|00000ff0| 0d 09 09 09 09 77 68 69 | 63 68 46 6c 61 67 73 20 |.....whi|chFlags |
|00001000| 3d 20 31 20 3b 09 2f 2f | 20 53 65 65 20 22 53 65 |= 1 ;.//| See "Se|
|00001010| 74 44 65 70 74 68 22 20 | 69 6e 20 54 48 49 4e 4b |tDepth" |in THINK|
|00001020| 20 52 65 66 2e 2e 2e 0d | 09 09 09 53 65 74 44 65 | Ref....|...SetDe|
|00001030| 70 74 68 28 20 47 65 74 | 47 44 65 76 69 63 65 28 |pth( Get|GDevice(|
|00001040| 29 2c 20 6c 70 50 74 72 | 2d 3e 64 65 70 74 68 2c |), lpPtr|->depth,|
|00001050| 20 77 68 69 63 68 46 6c | 61 67 73 2c 20 66 6c 61 | whichFl|ags, fla|
|00001060| 67 73 20 29 20 3b 0d 09 | 09 7d 0d 09 7d 0d 09 4c |gs ) ;..|.}..}..L|
|00001070| 61 75 6e 63 68 41 70 70 | 28 29 20 3b 0d 65 78 69 |aunchApp|() ;.exi|
|00001080| 74 3a 0d 09 48 55 6e 6c | 6f 63 6b 28 20 28 48 61 |t:..HUnl|ock( (Ha|
|00001090| 6e 64 6c 65 29 6c 70 48 | 64 6c 20 29 20 3b 0d 09 |ndle)lpH|dl ) ;..|
|000010a0| 52 65 6c 65 61 73 65 52 | 65 73 6f 75 72 63 65 28 |ReleaseR|esource(|
|000010b0| 20 28 48 61 6e 64 6c 65 | 29 6c 70 48 64 6c 20 29 | (Handle|)lpHdl )|
|000010c0| 20 3b 0d 09 72 65 74 75 | 72 6e 20 30 20 3b 0d 7d | ;..retu|rn 0 ;.}|
|000010d0| 0d 0d 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 20 6d |...pasca|l void m|
|000010e0| 79 49 74 65 6d 28 20 57 | 69 6e 64 6f 77 50 74 72 |yItem( W|indowPtr|
|000010f0| 20 74 68 65 57 69 6e 64 | 6f 77 2c 20 73 68 6f 72 | theWind|ow, shor|
|00001100| 74 20 74 68 65 49 74 65 | 6d 20 29 0d 7b 0d 09 53 |t theIte|m ).{..S|
|00001110| 74 72 69 6e 67 48 61 6e | 64 6c 65 20 73 74 72 48 |tringHan|dle strH|
|00001120| 64 6c 20 3b 0d 09 53 74 | 72 69 6e 67 50 74 72 20 |dl ;..St|ringPtr |
|00001130| 74 68 65 53 74 72 20 3b | 0d 09 0d 09 73 74 72 48 |theStr ;|....strH|
|00001140| 64 6c 20 3d 20 47 65 74 | 53 74 72 69 6e 67 28 20 |dl = Get|String( |
|00001150| 67 53 74 72 49 44 20 29 | 20 3b 0d 09 69 66 20 28 |gStrID )| ;..if (|
|00001160| 73 74 72 48 64 6c 20 3d | 3d 20 4e 55 4c 4c 29 0d |strHdl =|= NULL).|
|00001170| 09 09 72 65 74 75 72 6e | 20 3b 0d 09 48 4c 6f 63 |..return| ;..HLoc|
|00001180| 6b 28 20 28 48 61 6e 64 | 6c 65 29 73 74 72 48 64 |k( (Hand|le)strHd|
|00001190| 6c 20 29 20 3b 0d 09 74 | 68 65 53 74 72 20 3d 20 |l ) ;..t|heStr = |
|000011a0| 2a 73 74 72 48 64 6c 20 | 3b 0d 09 54 65 78 74 46 |*strHdl |;..TextF|
|000011b0| 6f 6e 74 28 20 6b 44 69 | 61 6c 6f 67 46 6f 6e 74 |ont( kDi|alogFont|
|000011c0| 20 29 20 3b 0d 09 54 65 | 78 74 53 69 7a 65 28 20 | ) ;..Te|xtSize( |
|000011d0| 6b 44 69 61 6c 6f 67 53 | 69 7a 65 20 29 20 3b 0d |kDialogS|ize ) ;.|
|000011e0| 09 23 69 66 64 65 66 20 | 5f 5f 4d 57 45 52 4b 53 |.#ifdef |__MWERKS|
|000011f0| 5f 5f 0d 09 09 54 45 54 | 65 78 74 42 6f 78 28 20 |__...TET|extBox( |
|00001200| 26 74 68 65 53 74 72 5b | 31 5d 2c 20 74 68 65 53 |&theStr[|1], theS|
|00001210| 74 72 5b 30 5d 2c 20 26 | 67 49 74 65 6d 52 65 63 |tr[0], &|gItemRec|
|00001220| 74 2c 20 74 65 46 6c 75 | 73 68 44 65 66 61 75 6c |t, teFlu|shDefaul|
|00001230| 74 20 29 20 3b 0d 09 23 | 65 6c 73 65 0d 09 09 54 |t ) ;..#|else...T|
|00001240| 65 78 74 42 6f 78 28 20 | 26 74 68 65 53 74 72 5b |extBox( |&theStr[|
|00001250| 31 5d 2c 20 74 68 65 53 | 74 72 5b 30 5d 2c 20 26 |1], theS|tr[0], &|
|00001260| 67 49 74 65 6d 52 65 63 | 74 2c 20 74 65 46 6c 75 |gItemRec|t, teFlu|
|00001270| 73 68 44 65 66 61 75 6c | 74 20 29 20 3b 0d 09 23 |shDefaul|t ) ;..#|
|00001280| 65 6e 64 69 66 0d 09 48 | 55 6e 6c 6f 63 6b 28 20 |endif..H|Unlock( |
|00001290| 28 48 61 6e 64 6c 65 29 | 73 74 72 48 64 6c 20 29 |(Handle)|strHdl )|
|000012a0| 20 3b 0d 09 52 65 6c 65 | 61 73 65 52 65 73 6f 75 | ;..Rele|aseResou|
|000012b0| 72 63 65 28 20 28 48 61 | 6e 64 6c 65 29 73 74 72 |rce( (Ha|ndle)str|
|000012c0| 48 64 6c 20 29 20 3b 0d | 7d 0d 0d 76 6f 69 64 20 |Hdl ) ;.|}..void |
|000012d0| 44 69 73 70 6c 61 79 46 | 61 69 6c 41 6c 65 72 74 |DisplayF|ailAlert|
|000012e0| 28 20 73 68 6f 72 74 20 | 69 64 20 29 0d 7b 0d 09 |( short |id ).{..|
|000012f0| 44 69 61 6c 6f 67 50 74 | 72 20 74 68 65 44 6c 67 |DialogPt|r theDlg|
|00001300| 20 3b 0d 09 73 68 6f 72 | 74 20 72 65 73 75 6c 74 | ;..shor|t result|
|00001310| 20 3b 0d 09 73 68 6f 72 | 74 20 69 54 79 70 65 20 | ;..shor|t iType |
|00001320| 3b 0d 09 52 65 63 74 20 | 69 52 65 63 74 20 3b 0d |;..Rect |iRect ;.|
|00001330| 09 48 61 6e 64 6c 65 20 | 69 48 61 6e 64 6c 65 20 |.Handle |iHandle |
|00001340| 3b 0d 09 0d 09 67 53 74 | 72 49 44 20 3d 20 69 64 |;....gSt|rID = id|
|00001350| 20 3b 0d 09 74 68 65 44 | 6c 67 20 3d 20 47 65 74 | ;..theD|lg = Get|
|00001360| 4e 65 77 44 69 61 6c 6f | 67 28 20 6b 44 69 61 6c |NewDialo|g( kDial|
|00001370| 6f 67 49 44 2c 20 4e 55 | 4c 4c 2c 20 28 57 69 6e |ogID, NU|LL, (Win|
|00001380| 64 6f 77 50 74 72 29 2d | 31 20 29 20 3b 0d 09 47 |dowPtr)-|1 ) ;..G|
|00001390| 65 74 44 49 74 65 6d 28 | 20 74 68 65 44 6c 67 2c |etDItem(| theDlg,|
|000013a0| 20 6b 44 69 61 6c 6f 67 | 49 74 65 6d 4e 6f 2c 20 | kDialog|ItemNo, |
|000013b0| 26 69 54 79 70 65 2c 20 | 26 69 48 61 6e 64 6c 65 |&iType, |&iHandle|
|000013c0| 2c 20 26 69 52 65 63 74 | 20 29 20 3b 0d 09 67 49 |, &iRect| ) ;..gI|
|000013d0| 74 65 6d 52 65 63 74 20 | 3d 20 69 52 65 63 74 20 |temRect |= iRect |
|000013e0| 3b 0d 09 53 65 74 44 49 | 74 65 6d 28 20 74 68 65 |;..SetDI|tem( the|
|000013f0| 44 6c 67 2c 20 6b 44 69 | 61 6c 6f 67 49 74 65 6d |Dlg, kDi|alogItem|
|00001400| 4e 6f 2c 20 69 54 79 70 | 65 2c 20 28 48 61 6e 64 |No, iTyp|e, (Hand|
|00001410| 6c 65 29 6d 79 49 74 65 | 6d 2c 20 26 69 52 65 63 |le)myIte|m, &iRec|
|00001420| 74 20 29 20 3b 0d 09 53 | 65 74 44 69 61 6c 6f 67 |t ) ;..S|etDialog|
|00001430| 44 65 66 61 75 6c 74 49 | 74 65 6d 28 20 74 68 65 |DefaultI|tem( the|
|00001440| 44 6c 67 2c 20 6f 6b 20 | 29 20 3b 0d 09 53 68 6f |Dlg, ok |) ;..Sho|
|00001450| 77 57 69 6e 64 6f 77 28 | 20 28 57 69 6e 64 6f 77 |wWindow(| (Window|
|00001460| 50 74 72 29 74 68 65 44 | 6c 67 20 29 20 3b 0d 09 |Ptr)theD|lg ) ;..|
|00001470| 4d 6f 64 61 6c 44 69 61 | 6c 6f 67 28 20 4e 55 4c |ModalDia|log( NUL|
|00001480| 4c 2c 20 26 72 65 73 75 | 6c 74 20 29 20 3b 0d 09 |L, &resu|lt ) ;..|
|00001490| 44 69 73 70 6f 73 65 44 | 69 61 6c 6f 67 28 20 74 |DisposeD|ialog( t|
|000014a0| 68 65 44 6c 67 20 29 20 | 3b 0d 7d 0d 0d 0d 76 6f |heDlg ) |;.}...vo|
|000014b0| 69 64 20 4c 61 75 6e 63 | 68 41 70 70 28 20 76 6f |id Launc|hApp( vo|
|000014c0| 69 64 20 29 20 0d 7b 0d | 09 4c 61 75 6e 63 68 50 |id ) .{.|.LaunchP|
|000014d0| 61 72 61 6d 42 6c 6f 63 | 6b 52 65 63 09 09 6d 79 |aramBloc|kRec..my|
|000014e0| 4c 61 75 6e 63 68 50 61 | 72 61 6d 73 20 3b 0d 09 |LaunchPa|rams ;..|
|000014f0| 50 72 6f 63 65 73 73 53 | 65 72 69 61 6c 4e 75 6d |ProcessS|erialNum|
|00001500| 62 65 72 09 09 6c 61 75 | 6e 63 68 65 64 50 72 6f |ber..lau|nchedPro|
|00001510| 63 65 73 73 53 4e 20 3b | 0d 09 4f 53 45 72 72 09 |cessSN ;|..OSErr.|
|00001520| 09 09 09 09 6c 61 75 6e | 63 68 45 72 72 20 3b 0d |....laun|chErr ;.|
|00001530| 09 6c 6f 6e 67 09 09 09 | 09 09 70 72 65 66 53 69 |.long...|..prefSi|
|00001540| 7a 65 20 3b 0d 09 6c 6f | 6e 67 09 09 09 09 09 6d |ze ;..lo|ng.....m|
|00001550| 69 6e 53 69 7a 65 20 3b | 0d 09 6c 6f 6e 67 09 09 |inSize ;|..long..|
|00001560| 09 09 09 61 76 61 69 6c | 53 69 7a 65 20 3b 0d 09 |...avail|Size ;..|
|00001570| 46 53 53 70 65 63 09 09 | 09 09 09 73 66 46 69 6c |FSSpec..|...sfFil|
|00001580| 65 20 3b 0d 09 73 68 6f | 72 74 09 09 09 09 09 76 |e ;..sho|rt.....v|
|00001590| 52 65 66 4e 75 6d 20 3b | 0d 09 6c 6f 6e 67 09 09 |RefNum ;|..long..|
|000015a0| 09 09 09 64 69 72 49 44 | 20 3b 0d 09 53 74 72 69 |...dirID| ;..Stri|
|000015b0| 6e 67 48 61 6e 64 6c 65 | 09 09 09 74 68 65 53 74 |ngHandle|...theSt|
|000015c0| 72 20 3b 0d 09 53 74 72 | 69 6e 67 50 74 72 09 09 |r ;..Str|ingPtr..|
|000015d0| 09 09 66 69 6c 65 6e 61 | 6d 65 20 3b 0d 09 0d 09 |..filena|me ;....|
|000015e0| 74 68 65 53 74 72 20 3d | 20 47 65 74 53 74 72 69 |theStr =| GetStri|
|000015f0| 6e 67 28 20 6b 46 69 6c | 65 6e 61 6d 65 20 29 20 |ng( kFil|ename ) |
|00001600| 3b 0d 09 69 66 20 28 74 | 68 65 53 74 72 20 3d 3d |;..if (t|heStr ==|
|00001610| 20 6e 69 6c 29 0d 09 09 | 72 65 74 75 72 6e 20 3b | nil)...|return ;|
|00001620| 0d 09 48 4c 6f 63 6b 28 | 20 28 48 61 6e 64 6c 65 |..HLock(| (Handle|
|00001630| 29 74 68 65 53 74 72 20 | 29 20 3b 0d 09 66 69 6c |)theStr |) ;..fil|
|00001640| 65 6e 61 6d 65 20 3d 20 | 2a 74 68 65 53 74 72 20 |ename = |*theStr |
|00001650| 3b 0d 09 48 47 65 74 56 | 6f 6c 28 20 6e 69 6c 2c |;..HGetV|ol( nil,|
|00001660| 20 26 76 52 65 66 4e 75 | 6d 2c 20 26 64 69 72 49 | &vRefNu|m, &dirI|
|00001670| 44 20 29 20 3b 0d 09 6c | 61 75 6e 63 68 45 72 72 |D ) ;..l|aunchErr|
|00001680| 20 3d 20 46 53 4d 61 6b | 65 46 53 53 70 65 63 28 | = FSMak|eFSSpec(|
|00001690| 20 30 2c 20 64 69 72 49 | 44 2c 20 66 69 6c 65 6e | 0, dirI|D, filen|
|000016a0| 61 6d 65 2c 20 26 73 66 | 46 69 6c 65 20 29 20 3b |ame, &sf|File ) ;|
|000016b0| 0d 09 48 55 6e 6c 6f 63 | 6b 28 20 28 48 61 6e 64 |..HUnloc|k( (Hand|
|000016c0| 6c 65 29 74 68 65 53 74 | 72 20 29 20 3b 0d 09 52 |le)theSt|r ) ;..R|
|000016d0| 65 6c 65 61 73 65 52 65 | 73 6f 75 72 63 65 28 20 |eleaseRe|source( |
|000016e0| 28 48 61 6e 64 6c 65 29 | 74 68 65 53 74 72 20 29 |(Handle)|theStr )|
|000016f0| 20 3b 0d 09 6d 79 4c 61 | 75 6e 63 68 50 61 72 61 | ;..myLa|unchPara|
|00001700| 6d 73 2e 6c 61 75 6e 63 | 68 42 6c 6f 63 6b 49 44 |ms.launc|hBlockID|
|00001710| 20 3d 20 65 78 74 65 6e | 64 65 64 42 6c 6f 63 6b | = exten|dedBlock|
|00001720| 20 3b 0d 09 6d 79 4c 61 | 75 6e 63 68 50 61 72 61 | ;..myLa|unchPara|
|00001730| 6d 73 2e 6c 61 75 6e 63 | 68 45 50 42 4c 65 6e 67 |ms.launc|hEPBLeng|
|00001740| 74 68 20 3d 20 65 78 74 | 65 6e 64 65 64 42 6c 6f |th = ext|endedBlo|
|00001750| 63 6b 4c 65 6e 20 3b 0d | 09 6d 79 4c 61 75 6e 63 |ckLen ;.|.myLaunc|
|00001760| 68 50 61 72 61 6d 73 2e | 6c 61 75 6e 63 68 46 69 |hParams.|launchFi|
|00001770| 6c 65 46 6c 61 67 73 20 | 3d 20 30 20 3b 0d 09 6d |leFlags |= 0 ;..m|
|00001780| 79 4c 61 75 6e 63 68 50 | 61 72 61 6d 73 2e 6c 61 |yLaunchP|arams.la|
|00001790| 75 6e 63 68 43 6f 6e 74 | 72 6f 6c 46 6c 61 67 73 |unchCont|rolFlags|
|000017a0| 20 3d 20 6c 61 75 6e 63 | 68 43 6f 6e 74 69 6e 75 | = launc|hContinu|
|000017b0| 65 20 2b 20 6c 61 75 6e | 63 68 4e 6f 46 69 6c 65 |e + laun|chNoFile|
|000017c0| 46 6c 61 67 73 20 3b 0d | 09 6d 79 4c 61 75 6e 63 |Flags ;.|.myLaunc|
|000017d0| 68 50 61 72 61 6d 73 2e | 6c 61 75 6e 63 68 41 70 |hParams.|launchAp|
|000017e0| 70 53 70 65 63 20 3d 20 | 26 73 66 46 69 6c 65 20 |pSpec = |&sfFile |
|000017f0| 3b 0d 09 6d 79 4c 61 75 | 6e 63 68 50 61 72 61 6d |;..myLau|nchParam|
|00001800| 73 2e 6c 61 75 6e 63 68 | 41 70 70 50 61 72 61 6d |s.launch|AppParam|
|00001810| 65 74 65 72 73 20 3d 20 | 6e 69 6c 20 3b 0d 0d 09 |eters = |nil ;...|
|00001820| 6c 61 75 6e 63 68 45 72 | 72 20 3d 20 4c 61 75 6e |launchEr|r = Laun|
|00001830| 63 68 41 70 70 6c 69 63 | 61 74 69 6f 6e 28 20 26 |chApplic|ation( &|
|00001840| 6d 79 4c 61 75 6e 63 68 | 50 61 72 61 6d 73 20 29 |myLaunch|Params )|
|00001850| 20 3b 0d 0d 09 69 66 20 | 28 6c 61 75 6e 63 68 45 | ;...if |(launchE|
|00001860| 72 72 20 3d 3d 20 66 6e | 66 45 72 72 29 0d 09 09 |rr == fn|fErr)...|
|00001870| 44 69 73 70 6c 61 79 46 | 61 69 6c 41 6c 65 72 74 |DisplayF|ailAlert|
|00001880| 28 20 6b 46 61 69 6c 46 | 69 6c 65 4e 6f 74 46 6f |( kFailF|ileNotFo|
|00001890| 75 6e 64 49 44 20 29 20 | 3b 0d 09 2f 2f 20 54 68 |undID ) |;..// Th|
|000018a0| 65 73 65 20 61 72 65 6e | 27 74 20 75 73 65 64 2c |ese aren|'t used,|
|000018b0| 20 62 75 74 20 77 68 61 | 74 20 74 68 65 20 68 65 | but wha|t the he|
|000018c0| 79 2e 2e 2e 74 68 65 79 | 27 72 65 20 6e 65 61 74 |y...they|'re neat|
|000018d0| 20 74 6f 20 68 61 76 65 | 2e 0d 09 70 72 65 66 53 | to have|...prefS|
|000018e0| 69 7a 65 20 3d 20 6d 79 | 4c 61 75 6e 63 68 50 61 |ize = my|LaunchPa|
|000018f0| 72 61 6d 73 2e 6c 61 75 | 6e 63 68 50 72 65 66 65 |rams.lau|nchPrefe|
|00001900| 72 72 65 64 53 69 7a 65 | 20 3b 0d 09 6d 69 6e 53 |rredSize| ;..minS|
|00001910| 69 7a 65 20 3d 20 6d 79 | 4c 61 75 6e 63 68 50 61 |ize = my|LaunchPa|
|00001920| 72 61 6d 73 2e 6c 61 75 | 6e 63 68 4d 69 6e 69 6d |rams.lau|nchMinim|
|00001930| 75 6d 53 69 7a 65 20 3b | 0d 09 69 66 20 28 20 21 |umSize ;|..if ( !|
|00001940| 6c 61 75 6e 63 68 45 72 | 72 20 29 0d 09 09 6c 61 |launchEr|r )...la|
|00001950| 75 6e 63 68 65 64 50 72 | 6f 63 65 73 73 53 4e 20 |unchedPr|ocessSN |
|00001960| 3d 20 6d 79 4c 61 75 6e | 63 68 50 61 72 61 6d 73 |= myLaun|chParams|
|00001970| 2e 6c 61 75 6e 63 68 50 | 72 6f 63 65 73 73 53 4e |.launchP|rocessSN|
|00001980| 20 3b 0d 09 65 6c 73 65 | 20 69 66 20 28 20 6c 61 | ;..else| if ( la|
|00001990| 75 6e 63 68 45 72 72 20 | 3d 3d 20 6d 65 6d 46 75 |unchErr |== memFu|
|000019a0| 6c 6c 45 72 72 20 29 0d | 09 09 61 76 61 69 6c 53 |llErr ).|..availS|
|000019b0| 69 7a 65 20 3d 20 6d 79 | 4c 61 75 6e 63 68 50 61 |ize = my|LaunchPa|
|000019c0| 72 61 6d 73 2e 6c 61 75 | 6e 63 68 41 76 61 69 6c |rams.lau|nchAvail|
|000019d0| 61 62 6c 65 53 69 7a 65 | 20 3b 0d 7d 0d 0d 0d 2f |ableSize| ;.}.../|
|000019e0| 2f 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |/ This f|unction |
|000019f0| 69 73 20 6e 65 65 64 65 | 64 20 74 6f 20 63 61 6c |is neede|d to cal|
|00001a00| 6c 20 53 77 61 70 44 61 | 74 61 43 61 63 68 65 2f |l SwapDa|taCache/|
|00001a10| 53 77 61 70 49 6e 73 74 | 72 75 63 74 69 6f 6e 43 |SwapInst|ructionC|
|00001a20| 61 63 68 65 0d 42 6f 6f | 6c 65 61 6e 20 48 57 50 |ache.Boo|lean HWP|
|00001a30| 72 69 76 41 76 61 69 6c | 61 62 6c 65 28 76 6f 69 |rivAvail|able(voi|
|00001a40| 64 29 0d 7b 0d 09 72 65 | 74 75 72 6e 20 54 72 61 |d).{..re|turn Tra|
|00001a50| 70 41 76 61 69 6c 61 62 | 6c 65 28 5f 48 57 50 72 |pAvailab|le(_HWPr|
|00001a60| 69 76 29 3b 0d 7d 0d 0d | 0d 00 00 00 00 00 00 00 |iv);.}..|........|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001a90| 4c 57 53 43 50 52 45 52 | 05 00 00 00 00 00 00 00 |LWSCPRER|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 0e 53 61 66 65 4c 61 75 | 6e 63 68 65 72 2e 63 53 |.SafeLau|ncher.cS|
|00001ac0| 02 00 00 00 50 61 72 74 | 53 49 54 78 00 00 00 00 |....Part|SITx....|
|00001ad0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 aa e3 fe df 00 00 | 00 00 00 00 01 7e 00 00 |........|.....~..|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 b4 25 01 4d 49 |........|....%.MI|
|00001b10| 41 43 41 50 50 4c 03 00 | 00 00 00 00 00 00 00 00 |ACAPPL..|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 b3 25 01 | 4d 4d 43 43 41 50 50 4c |......%.|MMCCAPPL|
|00001b40| 02 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 a5 |........|........|
|00001b60| 25 01 4d 4d 43 43 4d 4d | 4c 42 01 00 00 00 00 00 |%.MMCCMM|LB......|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 03 | 00 04 00 3d 00 04 02 6b |........|...=...k|
|00001bb0| 02 07 00 3d 00 04 02 6b | 02 07 aa c0 f0 cb 00 00 |...=...k|........|
|00001bc0| 02 a8 00 00 02 a8 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00001bd0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 01 05 8e 78 |...L...L|...2...x|
|00001be0| 3b 7e 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |;~.....2|..MPSR..|
|00001bf0| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+